How to property create and reference dynamic variable names in script